package online.heycm.exception;

import lombok.Getter;

/**
 * 自定义异常类
 *
 * @author heycm
 * @since 2021-03-25 11:01:24
 */
@Getter
public class APIException extends RuntimeException{

    private String code;

    public APIException(String message) {
        super(message);
    }

    public APIException(String code, String message) {
        super(message);
        this.code = code;
    }

}
